//
//  CABtWallet.m
//  Test
//
//  Created by xgc on 12/26/17.
//  Copyright © 2017 xgc. All rights reserved.
//

#import "CABtWallet.h"

@implementation CABtWallet

+(id)initWithBtWallet: (BtWallet*)wallet {
    
    CABtWallet* btWallet = [[CABtWallet alloc]init];
    BtSeed* seed = wallet->getBtSeed();
    btWallet.btSeed = [CABtSeed initWithBtSeed: seed];
    string address = wallet->getAddress();
    btWallet.address = [NSString stringWithCString:address.c_str() encoding:[NSString defaultCStringEncoding]];
    string symbol = wallet->getSymbol();
    btWallet.symbol = [NSString stringWithCString:symbol.c_str() encoding:[NSString defaultCStringEncoding]];
    
    return btWallet;
}

-(id)init {
    if (self = [super init]) {
        
    }
    return self;
}


@end
